package com.aistar.service;

import com.aistar.pojo.Member;
<<<<<<< HEAD

public interface MemberService {
    public Member getById(int id);
    public boolean save(Member member);
    public boolean update(Member member);
    public boolean delete(int id);
    public boolean getByOthers(String memberName, String memberPwd);

    public void updateScore(Member m1, Member m2);
=======
import com.aistar.util.JsonResult;
import org.springframework.stereotype.Repository;

@Repository
public interface MemberService {

    //添加用户
    public boolean save(Member member);
    //修改用户
    public boolean update(Member member);
    //根据主键查询
    public Member getById(int memberId);

    //根据手机号查询
    public JsonResult getByTelno(Long memberTelno);

    //登录根据用户名或名密码
    public Member login(String username, String password);

    //登录根据手机号或名密码
    public Member loginByTelno(Long memberTelno, String password);

>>>>>>> 79297cf758ff388ed3ea7d02640b718856076aad
}
